home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 October: Mac OS SDK / Dev.CD Oct 97 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Universal / Interfaces / PInterfaces / OCEStandardMail.p < prev    next >
Encoding:
Text File  |  1997-08-12  |  21.8 KB  |  630 lines  |  [TEXT/MPS ]

  1. {
  2.      File:        OCEStandardMail.p
  3.  
  4.      Contains:    Apple Open Collaboration Environment Standard Mail Interfaces.
  5.  
  6.      Version:    Technology:    AOCE Toolbox 1.02
  7.                  Release:    Universal Interfaces 3.0.1
  8.  
  9.      Copyright:    © 1994-1997 by Apple Computer, Inc., all rights reserved.
  10.  
  11.      Bugs?:        Please include the the file and version information (from above) with
  12.                  the problem description.  Developers belonging to one of the Apple
  13.                  developer programs can submit bug reports to:
  14.  
  15.                      devsupport@apple.com
  16.  
  17. }
  18. {$IFC UNDEFINED UsingIncludes}
  19. {$SETC UsingIncludes := 0}
  20. {$ENDC}
  21.  
  22. {$IFC NOT UsingIncludes}
  23.  UNIT OCEStandardMail;
  24.  INTERFACE
  25. {$ENDC}
  26.  
  27. {$IFC UNDEFINED __OCESTANDARDMAIL__}
  28. {$SETC __OCESTANDARDMAIL__ := 1}
  29.  
  30. {$I+}
  31. {$SETC OCEStandardMailIncludes := UsingIncludes}
  32. {$SETC UsingIncludes := 1}
  33.  
  34. {$IFC UNDEFINED __APPLEEVENTS__}
  35. {$I AppleEvents.p}
  36. {$ENDC}
  37. {$IFC UNDEFINED __DIALOGS__}
  38. {$I Dialogs.p}
  39. {$ENDC}
  40. {$IFC UNDEFINED __FILES__}
  41. {$I Files.p}
  42. {$ENDC}
  43. {$IFC UNDEFINED __QUICKDRAW__}
  44. {$I Quickdraw.p}
  45. {$ENDC}
  46.  
  47. {$IFC UNDEFINED __OCEAUTHDIR__}
  48. {$I OCEAuthDir.p}
  49. {$ENDC}
  50. {$IFC UNDEFINED __OCEMAIL__}
  51. {$I OCEMail.p}
  52. {$ENDC}
  53.  
  54.  
  55. {$PUSH}
  56. {$ALIGN MAC68K}
  57. {$LibExport+}
  58.  
  59.  
  60. CONST
  61.     kSMPVersion                    = 1;
  62.  
  63.     kSMPNativeFormatName        = 'natv';
  64.  
  65.  
  66. TYPE
  67.     LetterSpecPtr = ^LetterSpec;
  68.     LetterSpec = RECORD
  69.         spec:                    ARRAY [0..2] OF LONGINT;
  70.     END;
  71.  
  72.  
  73. CONST
  74.     typeLetterSpec                = 'lttr';
  75.  
  76. {    Wildcard used for filtering letter types. }
  77.     FilterAnyLetter                = 'ltr*';
  78.     FilterAppleLetterContent    = 'ltc*';
  79.     FilterImageContent            = 'lti*';
  80.  
  81.  
  82.  
  83. TYPE
  84.     LetterDescriptorPtr = ^LetterDescriptor;
  85.     LetterDescriptor = RECORD
  86.         onDisk:                    BOOLEAN;
  87.         filler1:                BOOLEAN;
  88.         CASE INTEGER OF
  89.         0: (
  90.             fileSpec:            FSSpec;
  91.             );
  92.         1: (
  93.             mailboxSpec:        LetterSpec;
  94.             );
  95.     END;
  96.  
  97. {
  98. SMPPSendAs values.  You may add the following values together to determine how the
  99. file is sent, but you may not set both kSMPSendAsEnclosureMask and kSMPSendFileOnlyMask.  This
  100. will allow you to send the letter as an image so that it will work with fax gateways
  101. and send as an enclosure as well.
  102. }
  103.  
  104. CONST
  105.     kSMPSendAsEnclosureBit        = 0;                            {  Appears as letter with enclosures  }
  106.     kSMPSendFileOnlyBit            = 1;                            {  Appears as a file in mailbox.  }
  107.     kSMPSendAsImageBit            = 2;                            {  Content imaged in letter  }
  108.  
  109. { Values of SMPPSendAs }
  110.     kSMPSendAsEnclosureMask        = $01;
  111.     kSMPSendFileOnlyMask        = $02;
  112.     kSMPSendAsImageMask            = $04;
  113.  
  114.  
  115. TYPE
  116.     SMPPSendAs                            = Byte;
  117. { Send Package Structures }
  118.     SMPDrawImageProcPtr = ProcPtr;  { PROCEDURE SMPDrawImage(refcon: LONGINT; inColor: BOOLEAN); }
  119.  
  120.     SMPDrawImageUPP = UniversalProcPtr;
  121.  
  122. CONST
  123.     uppSMPDrawImageProcInfo = $000001C0;
  124.  
  125. FUNCTION NewSMPDrawImageProc(userRoutine: SMPDrawImageProcPtr): SMPDrawImageUPP;
  126.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  127.     INLINE $2E9F;
  128.     {$ENDC}
  129.  
  130. PROCEDURE CallSMPDrawImageProc(refcon: LONGINT; inColor: BOOLEAN; userRoutine: SMPDrawImageUPP);
  131.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  132.     INLINE $205F, $4E90;
  133.     {$ENDC}
  134.  
  135. TYPE
  136.     SMPRecipientDescriptorPtr = ^SMPRecipientDescriptor;
  137.     SMPRecipientDescriptor = RECORD
  138.         next:                    SMPRecipientDescriptorPtr;                {   Q-Link.  }
  139.         result:                    OSErr;                                    {   result code when using the object.  }
  140.         recipient:                OCEPackedRecipientPtr;                    {   Pointer to a Packed Address.  }
  141.         size:                    LONGINT;                                {   length of recipient in bytes.  }
  142.         theAddress:                MailRecipient;                            {   structure points into recipient and theRID.  }
  143.         theRID:                    RecordID;                                {   structure points into recipient.  }
  144.     END;
  145.  
  146.     SMPEnclosureDescriptorPtr = ^SMPEnclosureDescriptor;
  147.     SMPEnclosureDescriptor = RECORD
  148.         next:                    SMPEnclosureDescriptorPtr;
  149.         result:                    OSErr;
  150.         fileSpec:                FSSpec;
  151.         fileCreator:            OSType;                                    {   Creator of this enclosure.  }
  152.         fileType:                OSType;                                    {   File Type of this enclosure.  }
  153.     END;
  154.  
  155.     SMPLetterPBPtr = ^SMPLetterPB;
  156.     SMPLetterPB = RECORD
  157.         result:                    OSErr;                                    {  result of operation  }
  158.         subject:                RStringPtr;                                {  RString  }
  159.         senderIdentity:            AuthIdentity;                            {  Letter is sent from this Identity  }
  160.         toList:                    SMPRecipientDescriptorPtr;                {  Pointer to linked list  }
  161.         ccList:                    SMPRecipientDescriptorPtr;                {  Pointer to linked list  }
  162.         bccList:                SMPRecipientDescriptorPtr;                {  Pointer to linked list  }
  163.         script:                    ScriptCode;                                {  Identifier for language  }
  164.         textSize:                Size;                                    {  length of body data  }
  165.         textBuffer:                Ptr;                                    {  body of the letter  }
  166.         sendAs:                    SInt8;                                    {  Send as Letter,Enclosure,Image  }
  167.         padByte:                SInt8;
  168.         enclosures:                SMPEnclosureDescriptorPtr;                {  files to be enclosed  }
  169.         drawImageProc:            SMPDrawImageUPP;                        {  For imaging  }
  170.         imageRefCon:            LONGINT;                                {  For imaging  }
  171.         supportsColor:            BOOLEAN;                                {  For imaging - set to true if you application supports color imaging  }
  172.         filler1:                BOOLEAN;
  173.     END;
  174.  
  175.  
  176. CONST
  177.     kSMPAppMustHandleEventBit    = 0;
  178.     kSMPAppShouldIgnoreEventBit    = 1;
  179.     kSMPContractedBit            = 2;
  180.     kSMPExpandedBit                = 3;
  181.     kSMPMailerBecomesTargetBit    = 4;
  182.     kSMPAppBecomesTargetBit        = 5;
  183.     kSMPCursorOverMailerBit        = 6;
  184.     kSMPCreateCopyWindowBit        = 7;
  185.     kSMPDisposeCopyWindowBit    = 8;
  186.  
  187. { Values of SMPMailerResult }
  188.     kSMPAppMustHandleEventMask    = $01;
  189.     kSMPAppShouldIgnoreEventMask = $02;
  190.     kSMPContractedMask            = $04;
  191.     kSMPExpandedMask            = $08;
  192.     kSMPMailerBecomesTargetMask    = $10;
  193.     kSMPAppBecomesTargetMask    = $20;
  194.     kSMPCursorOverMailerMask    = $40;
  195.     kSMPCreateCopyWindowMask    = $80;
  196.     kSMPDisposeCopyWindowMask    = $0100;
  197.  
  198.  
  199. TYPE
  200.     SMPMailerResult                        = LONGINT;
  201. { Values of SMPMailerComponent}
  202.  
  203. CONST
  204.     kSMPOther                    = -1;
  205.     kSMPFrom                    = 32;
  206.     kSMPTo                        = 20;
  207.     kSMPRegarding                = 22;
  208.     kSMPSendDateTime            = 29;
  209.     kSMPAttachments                = 26;
  210.     kSMPAddressOMatic            = 16;
  211.  
  212.  
  213. TYPE
  214.     SMPMailerComponent                    = LONGINT;
  215.  
  216.  
  217. CONST
  218.     kSMPToAddress                = 13;
  219.     kSMPCCAddress                = 14;
  220.     kSMPBCCAddress                = 15;
  221.  
  222.  
  223. TYPE
  224.     SMPAddressType                        = MailAttributeID;
  225.  
  226.  
  227. CONST
  228.     kSMPUndoCommand                = 0;
  229.     kSMPCutCommand                = 1;
  230.     kSMPCopyCommand                = 2;
  231.     kSMPPasteCommand            = 3;
  232.     kSMPClearCommand            = 4;
  233.     kSMPSelectAllCommand        = 5;
  234.  
  235.  
  236. TYPE
  237.     SMPEditCommand                        = INTEGER;
  238.  
  239. CONST
  240.     kSMPUndoDisabled            = 0;
  241.     kSMPAppMayUndo                = 1;
  242.     kSMPMailerUndo                = 2;
  243.  
  244.  
  245. TYPE
  246.     SMPUndoState                        = INTEGER;
  247. {
  248. SMPSendFormatMask:
  249.  
  250. Bitfield indicating which combinations of formats are included in,
  251. should be included or, or can be included in a letter.
  252. }
  253.  
  254. CONST
  255.     kSMPNativeBit                = 0;
  256.     kSMPImageBit                = 1;
  257.     kSMPStandardInterchangeBit    = 2;
  258.  
  259. { Values of SMPSendFormatMask }
  260.     kSMPNativeMask                = $01;
  261.     kSMPImageMask                = $02;
  262.     kSMPStandardInterchangeMask    = $04;
  263.  
  264.  
  265. TYPE
  266.     SMPSendFormatMask                    = LONGINT;
  267.  
  268. {
  269.     Pseudo-events passed to the clients filter proc for initialization and cleanup.
  270. }
  271.  
  272. CONST
  273.     kSMPSendOptionsStart        = -1;
  274.     kSMPSendOptionsEnd            = -2;
  275.  
  276.  
  277. {
  278. SMPSendFormatMask:
  279.  
  280. Structure describing the format of a letter.  If kSMPNativeMask bit is set, the whichNativeFormat field indicates which of the client-defined formats to use.
  281. }
  282.  
  283.  
  284. TYPE
  285.     SMPSendFormatPtr = ^SMPSendFormat;
  286.     SMPSendFormat = RECORD
  287.         whichFormats:            SMPSendFormatMask;
  288.         whichNativeFormat:        INTEGER;                                {  0 based  }
  289.     END;
  290.  
  291.  
  292.  
  293.     SMPLetterInfoPtr = ^SMPLetterInfo;
  294.     SMPLetterInfo = RECORD
  295.         letterCreator:            OSType;
  296.         letterType:                OSType;
  297.         subject:                RString32;
  298.         sender:                    RString32;
  299.     END;
  300.  
  301.  
  302.  
  303. CONST
  304.     kSMPSave                    = 0;
  305.     kSMPSaveAs                    = 1;
  306.     kSMPSaveACopy                = 2;
  307.  
  308.  
  309. TYPE
  310.     SMPSaveType                            = INTEGER;
  311.     FrontWindowProcPtr = ProcPtr;  { FUNCTION FrontWindow(clientData: LONGINT): WindowPtr; }
  312.  
  313.     PrepareMailerForDrawingProcPtr = ProcPtr;  { PROCEDURE PrepareMailerForDrawing(window: WindowPtr; clientData: LONGINT); }
  314.  
  315.     FrontWindowUPP = UniversalProcPtr;
  316.     PrepareMailerForDrawingUPP = UniversalProcPtr;
  317.  
  318. CONST
  319.     uppFrontWindowProcInfo = $000000F0;
  320.     uppPrepareMailerForDrawingProcInfo = $000003C0;
  321.  
  322. FUNCTION NewFrontWindowProc(userRoutine: FrontWindowProcPtr): FrontWindowUPP;
  323.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  324.     INLINE $2E9F;
  325.     {$ENDC}
  326.  
  327. FUNCTION NewPrepareMailerForDrawingProc(userRoutine: PrepareMailerForDrawingProcPtr): PrepareMailerForDrawingUPP;
  328.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  329.     INLINE $2E9F;
  330.     {$ENDC}
  331.  
  332. FUNCTION CallFrontWindowProc(clientData: LONGINT; userRoutine: FrontWindowUPP): WindowPtr;
  333.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  334.     INLINE $205F, $4E90;
  335.     {$ENDC}
  336.  
  337. PROCEDURE CallPrepareMailerForDrawingProc(window: WindowPtr; clientData: LONGINT; userRoutine: PrepareMailerForDrawingUPP);
  338.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  339.     INLINE $205F, $4E90;
  340.     {$ENDC}
  341.  
  342. TYPE
  343.     SendOptionsFilterProcPtr = ProcPtr;  { FUNCTION SendOptionsFilter(theDialog: DialogPtr; VAR theEvent: EventRecord; itemHit: INTEGER; clientData: LONGINT): BOOLEAN; }
  344.  
  345.     SendOptionsFilterUPP = UniversalProcPtr;
  346.  
  347. CONST
  348.     uppSendOptionsFilterProcInfo = $00003BD0;
  349.  
  350. FUNCTION NewSendOptionsFilterProc(userRoutine: SendOptionsFilterProcPtr): SendOptionsFilterUPP;
  351.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  352.     INLINE $2E9F;
  353.     {$ENDC}
  354.  
  355. FUNCTION CallSendOptionsFilterProc(theDialog: DialogPtr; VAR theEvent: EventRecord; itemHit: INTEGER; clientData: LONGINT; userRoutine: SendOptionsFilterUPP): BOOLEAN;
  356.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  357.     INLINE $205F, $4E90;
  358.     {$ENDC}
  359.  
  360. TYPE
  361.     SMPMailerStatePtr = ^SMPMailerState;
  362.     SMPMailerState = RECORD
  363.         mailerCount:            INTEGER;
  364.         currentMailer:            INTEGER;
  365.         upperLeft:                Point;
  366.         hasBeenReceived:        BOOLEAN;
  367.         isTarget:                BOOLEAN;
  368.         isExpanded:                BOOLEAN;
  369.         canMoveToTrash:            BOOLEAN;
  370.         canTag:                    BOOLEAN;
  371.         padByte2:                SInt8;
  372.         changeCount:            LONGINT;
  373.         targetComponent:        SMPMailerComponent;
  374.         canCut:                    BOOLEAN;
  375.         canCopy:                BOOLEAN;
  376.         canPaste:                BOOLEAN;
  377.         canClear:                BOOLEAN;
  378.         canSelectAll:            BOOLEAN;
  379.         padByte3:                SInt8;
  380.         undoState:                SMPUndoState;
  381.         undoWhat:                Str63;
  382.     END;
  383.  
  384.  
  385.     SMPSendOptionsPtr = ^SMPSendOptions;
  386.     SMPSendOptions = RECORD
  387.         signWhenSent:            BOOLEAN;
  388.         priority:                SInt8;
  389.     END;
  390.  
  391.     SMPSendOptionsHandle                = ^SMPSendOptionsPtr;
  392.  
  393.     SMPCloseOptionsPtr = ^SMPCloseOptions;
  394.     SMPCloseOptions = RECORD
  395.         moveToTrash:            BOOLEAN;
  396.         addTag:                    BOOLEAN;
  397.         tag:                    RString32;
  398.     END;
  399.  
  400.  
  401. {----------------------------------------------------------------------------------------
  402.     Send Package Routines
  403. ----------------------------------------------------------------------------------------}
  404. FUNCTION SMPSendLetter(theLetter: SMPLetterPBPtr): OSErr;
  405.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  406.     INLINE $203C, $0002, $01F4, $AA5D;
  407.     {$ENDC}
  408. FUNCTION SMPNewPage(VAR newHeader: OpenCPicParams): OSErr;
  409.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  410.     INLINE $203C, $0002, $0834, $AA5D;
  411.     {$ENDC}
  412. FUNCTION SMPImageErr: OSErr;
  413.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  414.     INLINE $203C, $0000, $0835, $AA5D;
  415.     {$ENDC}
  416. FUNCTION SMPResolveToRecipient(dsSpec: PackedDSSpecPtr; VAR recipientList: SMPRecipientDescriptorPtr; identity: AuthIdentity): OSErr;
  417.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  418.     INLINE $203C, $0006, $044C, $AA5D;
  419.     {$ENDC}
  420.  
  421.  
  422. FUNCTION SMPInitMailer(mailerVersion: LONGINT): OSErr;
  423.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  424.     INLINE $203C, $0002, $1285, $AA5D;
  425.     {$ENDC}
  426. FUNCTION SMPGetDimensions(VAR width: INTEGER; VAR contractedHeight: INTEGER; VAR expandedHeight: INTEGER): OSErr;
  427.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  428.     INLINE $203C, $0006, $125C, $AA5D;
  429.     {$ENDC}
  430. FUNCTION SMPGetTabInfo(VAR firstTab: SMPMailerComponent; VAR lastTab: SMPMailerComponent): OSErr;
  431.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  432.     INLINE $203C, $0004, $1274, $AA5D;
  433.     {$ENDC}
  434. FUNCTION SMPNewMailer(window: WindowPtr; upperLeft: Point; canContract: BOOLEAN; initiallyExpanded: BOOLEAN; identity: AuthIdentity; prepareMailerForDrawingCB: PrepareMailerForDrawingUPP; clientData: LONGINT): OSErr;
  435.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  436.     INLINE $203C, $000C, $125D, $AA5D;
  437.     {$ENDC}
  438. FUNCTION SMPPrepareToClose(window: WindowPtr): OSErr;
  439.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  440.     INLINE $203C, $0002, $1287, $AA5D;
  441.     {$ENDC}
  442. FUNCTION SMPCloseOptionsDialog(window: WindowPtr; closeOptions: SMPCloseOptionsPtr): OSErr;
  443.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  444.     INLINE $203C, $0004, $1288, $AA5D;
  445.     {$ENDC}
  446. FUNCTION SMPTagDialog(window: WindowPtr; VAR theTag: RString32): OSErr;
  447.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  448.     INLINE $203C, $0004, $128B, $AA5D;
  449.     {$ENDC}
  450. FUNCTION SMPDisposeMailer(window: WindowPtr; closeOptions: SMPCloseOptionsPtr): OSErr;
  451.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  452.     INLINE $203C, $0004, $125E, $AA5D;
  453.     {$ENDC}
  454. FUNCTION SMPMailerEvent({CONST}VAR event: EventRecord; VAR whatHappened: SMPMailerResult; frontWindowCB: FrontWindowUPP; clientData: LONGINT): OSErr;
  455.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  456.     INLINE $203C, $0008, $125F, $AA5D;
  457.     {$ENDC}
  458. FUNCTION SMPClearUndo(window: WindowPtr): OSErr;
  459.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  460.     INLINE $203C, $0002, $1275, $AA5D;
  461.     {$ENDC}
  462. FUNCTION SMPMailerEditCommand(window: WindowPtr; command: SMPEditCommand; VAR whatHappened: SMPMailerResult): OSErr;
  463.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  464.     INLINE $203C, $0005, $1260, $AA5D;
  465.     {$ENDC}
  466. FUNCTION SMPMailerForward(window: WindowPtr; from: AuthIdentity): OSErr;
  467.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  468.     INLINE $203C, $0004, $1261, $AA5D;
  469.     {$ENDC}
  470. FUNCTION SMPMailerReply(originalLetter: WindowPtr; newLetter: WindowPtr; replyToAll: BOOLEAN; upperLeft: Point; canContract: BOOLEAN; initiallyExpanded: BOOLEAN; identity: AuthIdentity; prepareMailerForDrawingCB: PrepareMailerForDrawingUPP; clientData: LONGINT): OSErr;
  471.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  472.     INLINE $203C, $000F, $1262, $AA5D;
  473.     {$ENDC}
  474. FUNCTION SMPGetMailerState(window: WindowPtr; VAR itsState: SMPMailerState): OSErr;
  475.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  476.     INLINE $203C, $0004, $1263, $AA5D;
  477.     {$ENDC}
  478. FUNCTION SMPSendOptionsDialog(window: WindowPtr; VAR documentName: Str255; VAR nativeFormatNames: StringPtr; nameCount: INTEGER; canSend: SMPSendFormatMask; VAR currentFormat: SMPSendFormat; filterProc: SendOptionsFilterUPP; clientData: LONGINT; VAR shouldSend: SMPSendFormat; sendOptions: SMPSendOptionsPtr): OSErr;
  479.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  480.     INLINE $203C, $0013, $1388, $AA5D;
  481.     {$ENDC}
  482.  
  483. FUNCTION SMPPrepareCoverPages(window: WindowPtr; VAR pageCount: INTEGER): OSErr;
  484.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  485.     INLINE $203C, $0004, $1264, $AA5D;
  486.     {$ENDC}
  487. FUNCTION SMPDrawNthCoverPage(window: WindowPtr; pageNumber: INTEGER; doneDrawingCoverPages: BOOLEAN): OSErr;
  488.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  489.     INLINE $203C, $0004, $1265, $AA5D;
  490.     {$ENDC}
  491. FUNCTION SMPPrepareToChange(window: WindowPtr): OSErr;
  492.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  493.     INLINE $203C, $0002, $1289, $AA5D;
  494.     {$ENDC}
  495. FUNCTION SMPContentChanged(window: WindowPtr): OSErr;
  496.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  497.     INLINE $203C, $0002, $126F, $AA5D;
  498.     {$ENDC}
  499. FUNCTION SMPBeginSave(window: WindowPtr; {CONST}VAR diskLetter: FSSpec; creator: OSType; fileType: OSType; saveType: SMPSaveType; VAR mustAddContent: BOOLEAN): OSErr;
  500.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  501.     INLINE $203C, $000B, $1266, $AA5D;
  502.     {$ENDC}
  503. FUNCTION SMPEndSave(window: WindowPtr; okToSave: BOOLEAN): OSErr;
  504.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  505.     INLINE $203C, $0003, $1270, $AA5D;
  506.     {$ENDC}
  507. FUNCTION SMPBeginSend(window: WindowPtr; creator: OSType; fileType: OSType; sendOptions: SMPSendOptionsPtr; VAR mustAddContent: BOOLEAN): OSErr;
  508.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  509.     INLINE $203C, $000A, $1267, $AA5D;
  510.     {$ENDC}
  511. FUNCTION SMPEndSend(window: WindowPtr; okToSend: BOOLEAN): OSErr;
  512.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  513.     INLINE $203C, $0003, $1271, $AA5D;
  514.     {$ENDC}
  515. FUNCTION SMPOpenLetter({CONST}VAR letter: LetterDescriptor; window: WindowPtr; upperLeft: Point; canContract: BOOLEAN; initiallyExpanded: BOOLEAN; prepareMailerForDrawingCB: PrepareMailerForDrawingUPP; clientData: LONGINT): OSErr;
  516.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  517.     INLINE $203C, $000C, $1268, $AA5D;
  518.     {$ENDC}
  519. FUNCTION SMPAddMainEnclosure(window: WindowPtr; {CONST}VAR enclosure: FSSpec): OSErr;
  520.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  521.     INLINE $203C, $0004, $127D, $AA5D;
  522.     {$ENDC}
  523. FUNCTION SMPGetMainEnclosureFSSpec(window: WindowPtr; VAR enclosureDir: FSSpec): OSErr;
  524.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  525.     INLINE $203C, $0004, $127E, $AA5D;
  526.     {$ENDC}
  527. FUNCTION SMPAddContent(window: WindowPtr; segmentType: MailSegmentType; appendFlag: BOOLEAN; buffer: UNIV Ptr; bufferSize: LONGINT; textScrap: StScrpPtr; startNewScript: BOOLEAN; script: ScriptCode): OSErr;
  528.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  529.     INLINE $203C, $000C, $127A, $AA5D;
  530.     {$ENDC}
  531. FUNCTION SMPReadContent(window: WindowPtr; segmentTypeMask: MailSegmentMask; buffer: UNIV Ptr; bufferSize: LONGINT; VAR dataSize: LONGINT; textScrap: StScrpPtr; VAR script: ScriptCode; VAR segmentType: MailSegmentType; VAR endOfScript: BOOLEAN; VAR endOfSegment: BOOLEAN; VAR endOfContent: BOOLEAN; VAR segmentLength: LONGINT; VAR segmentID: LONGINT): OSErr;
  532.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  533.     INLINE $203C, $0019, $127B, $AA5D;
  534.     {$ENDC}
  535. FUNCTION SMPGetFontNameFromLetter(window: WindowPtr; fontNum: INTEGER; VAR fontName: Str255; doneWithFontTable: BOOLEAN): OSErr;
  536.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  537.     INLINE $203C, $0006, $127C, $AA5D;
  538.     {$ENDC}
  539. FUNCTION SMPAddBlock(window: WindowPtr; {CONST}VAR blockType: OCECreatorType; append: BOOLEAN; buffer: UNIV Ptr; bufferSize: LONGINT; mode: MailBlockMode; offset: LONGINT): OSErr;
  540.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  541.     INLINE $203C, $000C, $127F, $AA5D;
  542.     {$ENDC}
  543. FUNCTION SMPReadBlock(window: WindowPtr; {CONST}VAR blockType: OCECreatorType; blockIndex: INTEGER; buffer: UNIV Ptr; bufferSize: LONGINT; dataOffset: LONGINT; VAR dataSize: LONGINT; VAR endOfBlock: BOOLEAN; VAR remaining: LONGINT): OSErr;
  544.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  545.     INLINE $203C, $0011, $1280, $AA5D;
  546.     {$ENDC}
  547. FUNCTION SMPEnumerateBlocks(window: WindowPtr; startIndex: INTEGER; buffer: UNIV Ptr; bufferSize: LONGINT; VAR dataSize: LONGINT; VAR nextIndex: INTEGER; VAR more: BOOLEAN): OSErr;
  548.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  549.     INLINE $203C, $000D, $1281, $AA5D;
  550.     {$ENDC}
  551. FUNCTION SMPDrawMailer(window: WindowPtr): OSErr;
  552.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  553.     INLINE $203C, $0002, $1269, $AA5D;
  554.     {$ENDC}
  555.  
  556. FUNCTION SMPSetSubject(window: WindowPtr; {CONST}VAR text: RString): OSErr;
  557.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  558.     INLINE $203C, $0004, $126B, $AA5D;
  559.     {$ENDC}
  560. FUNCTION SMPSetFromIdentity(window: WindowPtr; from: AuthIdentity): OSErr;
  561.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  562.     INLINE $203C, $0004, $126C, $AA5D;
  563.     {$ENDC}
  564. FUNCTION SMPAddAddress(window: WindowPtr; addrType: SMPAddressType; VAR address: OCEPackedRecipient): OSErr;
  565.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  566.     INLINE $203C, $0005, $126D, $AA5D;
  567.     {$ENDC}
  568. FUNCTION SMPAddAttachment(window: WindowPtr; {CONST}VAR attachment: FSSpec): OSErr;
  569.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  570.     INLINE $203C, $0004, $126E, $AA5D;
  571.     {$ENDC}
  572. FUNCTION SMPAttachDialog(window: WindowPtr): OSErr;
  573.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  574.     INLINE $203C, $0002, $1276, $AA5D;
  575.     {$ENDC}
  576.  
  577. FUNCTION SMPExpandOrContract(window: WindowPtr; expand: BOOLEAN): OSErr;
  578.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  579.     INLINE $203C, $0003, $1272, $AA5D;
  580.     {$ENDC}
  581.  
  582. FUNCTION SMPMoveMailer(window: WindowPtr; dh: INTEGER; dv: INTEGER): OSErr;
  583.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  584.     INLINE $203C, $0004, $126A, $AA5D;
  585.     {$ENDC}
  586.  
  587. FUNCTION SMPBecomeTarget(window: WindowPtr; becomeTarget: BOOLEAN; whichField: SMPMailerComponent): OSErr;
  588.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  589.     INLINE $203C, $0005, $1273, $AA5D;
  590.     {$ENDC}
  591.  
  592. FUNCTION SMPGetComponentSize(window: WindowPtr; whichMailer: INTEGER; whichField: SMPMailerComponent; VAR size: INTEGER): OSErr;
  593.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  594.     INLINE $203C, $0007, $1277, $AA5D;
  595.     {$ENDC}
  596.  
  597. FUNCTION SMPGetComponentInfo(window: WindowPtr; whichMailer: INTEGER; whichField: SMPMailerComponent; buffer: UNIV Ptr): OSErr;
  598.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  599.     INLINE $203C, $0007, $1278, $AA5D;
  600.     {$ENDC}
  601.  
  602. FUNCTION SMPGetListItemInfo(window: WindowPtr; whichMailer: INTEGER; whichField: SMPMailerComponent; buffer: UNIV Ptr; bufferLength: LONGINT; startItem: INTEGER; VAR itemCount: INTEGER; VAR nextItem: INTEGER; VAR more: BOOLEAN): OSErr;
  603.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  604.     INLINE $203C, $0010, $1279, $AA5D;
  605.     {$ENDC}
  606. FUNCTION SMPImage(window: WindowPtr; drawImageProc: SMPDrawImageUPP; imageRefCon: LONGINT; supportsColor: BOOLEAN): OSErr;
  607.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  608.     INLINE $203C, $0007, $1282, $AA5D;
  609.     {$ENDC}
  610. FUNCTION SMPGetNextLetter(VAR typesList: OSType; numTypes: INTEGER; VAR adjacentLetter: LetterDescriptor): OSErr;
  611.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  612.     INLINE $203C, $0005, $1286, $AA5D;
  613.     {$ENDC}
  614. FUNCTION SMPGetLetterInfo(VAR mailboxSpec: LetterSpec; VAR info: SMPLetterInfo): OSErr;
  615.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  616.     INLINE $203C, $0004, $128A, $AA5D;
  617.     {$ENDC}
  618.  
  619.  
  620. {$ALIGN RESET}
  621. {$POP}
  622.  
  623. {$SETC UsingIncludes := OCEStandardMailIncludes}
  624.  
  625. {$ENDC} {__OCESTANDARDMAIL__}
  626.  
  627. {$IFC NOT UsingIncludes}
  628.  END.
  629. {$ENDC}
  630.